package com.jk.flower.controller;

import com.jk.common.model.FlowerBean;
import com.jk.flower.service.FlowerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("flower")
public class FlowerController {
    @Autowired
    private FlowerService flowerService;

    @RequestMapping("flowerList")
    public List<FlowerBean> flowerList(String flowerTypeId){
        return flowerService.flowerList(flowerTypeId);
    }
}
